import request from '@/utils/request'

//  获取会员预存款列表
export function getMemberWalletList (val) {
  return request({
    url: '/member/wallet',
    method: 'get',
    params: val,
  })
}


// 获取会员预存款充值记录列表
export function getMemberWalletRecord (memberId, val) {
  return request({
    url: `/member/wallet/${memberId}/recharges`,
    method: 'get',
    params: val,
  })
}

// 获取会员预存款充值记录日志列表  
export function getMemberWalletLog (memberId, val) {
  return request({
    url: `/member/wallet/${memberId}/walletLogs`,
    method: 'get',
    params: val,
  })
}

// 给会员预存款钱包充值
export function Recharge (memberId, data) {
  return request({
    url: `/member/wallet/${memberId}/recharges`,
    method: 'post',
    data: data,
  })
}